package com.cy.service;

import com.cy.service.factory.RemoteProviderServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Usefulness: 用途
 * @Author: LeiTing
 * @Date: 2021/9/16  10:49
 * @Version 1.0
 */
@FeignClient(name = "sca-provider"
            ,contextId = "remoteProviderService"
            ,fallbackFactory = RemoteProviderServiceFallbackFactory.class)
public interface RemoteProviderService {
    @GetMapping("/provider/echo/{msg}")
    public String echoMessage(@PathVariable("msg") String msg);

}
